package com.xxxcompany.wordbook.dao;

import java.sql.SQLException;
import java.util.List;

import com.xxxcompany.wordbook.entity.Word;

public interface IWordDAO 
{
	
	public int insert(Word w) throws SQLException ;
	
	// 查找全站所有用户的
	public List<Word> findAll()throws SQLException ;
	
	// 查找某用户的单词列表
	public List<Word> findAll(int userId)throws SQLException ;
	
	public Word findById(int id) throws SQLException ;
	
	public int deleteById(int id)throws SQLException ;
	
	public int updateById(Word w)throws SQLException ;
	
	

}